/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除菜单 根据ID删除菜单信息 POST /scenic/SysMenu/delete */
export async function scenicSysMenuOpenApiDeleteUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicSysMenuOpenApiDeleteUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/SysMenu/delete', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 菜单详情 根据ID查询菜单详细信息 POST /scenic/SysMenu/get */
export async function scenicSysMenuGetUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicSysMenuGetUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingxitongcaidanvo>('/scenic/SysMenu/get', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 分页查询菜单 支持按条件分页查询 POST /scenic/SysMenu/page */
export async function scenicSysMenuPageUsingPost({
  body,
  options,
}: {
  body: API.SysMenuBo44360ad3Fac3434d8a5c20d964e32b4c;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoxitongcaidanvo>(
    '/scenic/SysMenu/page',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 新增或修改菜单 如需修改则传递id POST /scenic/SysMenu/save */
export async function scenicSysMenuSaveUsingPost({
  body,
  options,
}: {
  body: API.SysMenuBo6e472d829dfe4afe883355748a44c441;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingxitongcaidanvo>('/scenic/SysMenu/save', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
